﻿
@model XQ.SP.Model.UserInfoCheckItem
@{
    ViewBag.Title = "检查详细 信息";
    ViewBag.TextName = "检查详细 信息";
    Layout = "~/Views/Shared/Admin.cshtml";
}
<link rel="stylesheet" type="text/css" href="/Res/CSS/css/base.css" />
<link rel="stylesheet" type="text/css" href="/Res/CSS/css/styles.css" />

<div class="breadcrumb">
	<div class="route fl">
		<a href="/UserInfoCheck/List">管理列表</a> 
		<i>&gt;</i>
		<span>信息编辑</span> 
	</div>
</div>
@{
    var canJiaTime = Model.CanJiaTime == DateTime.MinValue ? "" : Model.CanJiaTime.ToString("yyyy-MM-dd HH:mm:ss");
    var stateTime = Model.StateTime == DateTime.MinValue ? "" : Model.StateTime.ToString("yyyy-MM-dd HH:mm:ss");
}

@using (Html.BeginForm())
{
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Status)
        @Html.HiddenFor(model => model.Created)
        @Html.HiddenFor(model => model.Creator)
        @Html.HiddenFor(model => model.Modifier)
        @Html.HiddenFor(model => model.Modified)
        List<SelectListItem> ListSeach = new List<SelectListItem>();
<div class="pd15">
<div style=" font-size: 22px; color: red; margin-top:15px; text-align: center; width: 100%;">@Html.ValidationSummary(true)</div>

    <div class="form-item">
		<label class="form-label">编号</label>
		<div class="input-block"><input type="text" id="No" name="No"  value="@Model.No" class="input" placeholder="请输入编号" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">县市</label>
		<div class="input-block"><input type="text" id="Citys" name="Citys"  value="@Model.Citys" class="input" placeholder="请输入县市" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">乡镇</label>
		<div class="input-block"><input type="text" id="Towns" name="Towns"  value="@Model.Towns" class="input" placeholder="请输入乡镇" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">村组名称</label>
		<div class="input-block"><input type="text" id="Village" name="Village"  value="@Model.Village" class="input" placeholder="请输入村组名称" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">姓名</label>
		<div class="input-block"><input type="text" id="Name" name="Name"  value="@Model.Name" class="input" placeholder="请输入姓名" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">性别</label>
		<div class="input-block">
            @Html.DropDownList("Sex", (IEnumerable<SelectListItem>)ViewBag.ListSex)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">身份证号</label>
		<div class="input-block"><input type="text" id="UID" name="UID"  value="@Model.UID" class="input" placeholder="请输入身份证号" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">民族</label>
		<div class="input-block"><input type="text" id="Nation" name="Nation"  value="@Model.Nation" class="input" placeholder="请输入民族" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">职业</label>
		<div class="input-block">
            @Html.DropDownList("ZhiYe", (IEnumerable<SelectListItem>)ViewBag.ListZhiYe)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">婚姻状况</label>
		<div class="input-block">
            @Html.DropDownList("HunYing", (IEnumerable<SelectListItem>)ViewBag.ListHunYing)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">文化程度</label>
		<div class="input-block">
            @Html.DropDownList("WenHua", (IEnumerable<SelectListItem>)ViewBag.ListWenHua)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">是否非户籍人口</label>
		<div class="input-block">
            @Html.DropDownList("State", (IEnumerable<SelectListItem>)ViewBag.ListState)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">未上户原因</label>
		<div class="input-block">
            @Html.DropDownList("ShangHu", (IEnumerable<SelectListItem>)ViewBag.ListShangHu)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">不纳入筛查原因</label>
		<div class="input-block">
            @Html.DropDownList("BuNaRu", (IEnumerable<SelectListItem>)ViewBag.ListBuNaRu)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">近一年外出时间(月)</label>
		<div class="input-block"><input type="text" id="YiNian" name="YiNian"  value="@Model.YiNian" class="input" placeholder="请输入近一年外出时间(月)" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">是否参加2017-2018年体检</label>
		<div class="input-block">
            @Html.DropDownList("CanJiaTi", (IEnumerable<SelectListItem>)ViewBag.ListCanJiaTi)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">本次是否参加现场检测</label>
		<div class="input-block">
            @Html.DropDownList("CanJiaJian", (IEnumerable<SelectListItem>)ViewBag.ListCanJiaJian)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">检测时间</label>
		<div class="input-block"><input type="text" id="CanJiaTime" name="CanJiaTime"  value="@canJiaTime" class="input" placeholder="请输入检测时间" /></div>
	</div>
<script type="text/javascript" src="/Res/Files/UploadImage/Js/COM_jQuery.js"></script>
<script type="text/javascript" src="/Res/CSS/js/datetimepicker.min.js"></script>
<script type="text/javascript">
	$("#CanJiaTime").datetimepicker({
		format:"Y-m-d H:m:s",
		timepicker:false,
	});
</script>
    <div class="form-item">
		<label class="form-label">现场HIV初筛结果</label>
		<div class="input-block">
            
            @Html.DropDownList("JieGuo", (IEnumerable<SelectListItem>)ViewBag.ListJieGuo)
@*            <input type="text" id="JieGuo" name="JieGuo"  value="@Model.JieGuo" class="input" placeholder="请输入现场HIV初筛结果" />*@

		</div>
	</div>
    <div class="form-item">
		<label class="form-label">是否为既往病例</label>
		<div class="input-block"><input type="text" id="JiWang" name="JiWang"  value="@Model.JiWang" class="input" placeholder="请输入是否为既往病例" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">是否采血</label>
		<div class="input-block">
            @Html.DropDownList("CaiXue", (IEnumerable<SelectListItem>)ViewBag.ListCaiXue)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">HIV复检结果</label>
		<div class="input-block">
            @Html.DropDownList("FuCha", (IEnumerable<SelectListItem>)ViewBag.ListFuCha)
@*            <input type="text" id="FuCha" name="FuCha"  value="@Model.FuCha" class="input" placeholder="请输入HIV复检结" />*@

		</div>
	</div>
    <div class="form-item">
		<label class="form-label">HIV确证结果</label>
		<div class="input-block">
            @Html.DropDownList("JieGuoHIV", (IEnumerable<SelectListItem>)ViewBag.ListJieGuoHIV)
@*            <input type="text" id="JieGuoHIV" name="JieGuoHIV"  value="@Model.JieGuoHIV" class="input" placeholder="请输入HIV确证结果" />*@

		</div>
	</div>
    <div class="form-item">
		<label class="form-label">未检测原因</label>
		<div class="input-block">
            @Html.DropDownList("WeiJianCe", (IEnumerable<SelectListItem>)ViewBag.ListWeiJianCe)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">备注</label>
		<div class="input-block"><input type="text" id="Desc" name="Desc"  value="@Model.Desc" class="input" placeholder="请输入备注" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">验证时间</label>
		<div class="input-block"><input type="text" id="StateTime" name="StateTime"  value="@stateTime" class="input" placeholder="请输入验证时间" /></div>
	</div>
<script type="text/javascript" src="/Res/Files/UploadImage/Js/COM_jQuery.js"></script>
<script type="text/javascript" src="/Res/CSS/js/datetimepicker.min.js"></script>
<script type="text/javascript">
	$("#StateTime").datetimepicker({
		format:"Y-m-d H:m:s",
		timepicker:false,
	});
</script>
    @*<script src="/Res/Files/UploadImage/Js/COM_jQuery.js"></script>
    <script src="/Res/Files/UploadImage/Js/ArtDialog/ART_ArtDialog.js"></script>
    <script src="/Res/Files/UploadImage/Js/ArtDialog/ART_ArtDialogTip.js"></script>
    <link href="/Res/Files/UploadImage/uploadify.css" rel="stylesheet" />
    <script src="/Res/Files/UploadImage/swfobject.js"></script>
    <script src="/Res/Files/UploadImage/jquery.uploadify.js"></script>
    <script src="/Res/Files/UploadImage/Js/COM_Fun.js"></script>*@

    @{
    if (!string.IsNullOrWhiteSpace(Model.UID))
    {
        <link href="/Res/Uploadify/uploadifive.css" rel="stylesheet" />
        <script src="/Res/Uploadify/jquery.min.js"></script>
        <script src="/Res/Uploadify/jquery.uploadifive.js"></script>
        <div class="form-item">
            <label class="form-label">现场拍照</label>
            <div class="input-block">
                <input id="fileImages" style="text-align:left;float:left;" type="file" />
                <input type="hidden" name="Images" id="txtImages" value="@Model.Images" />
                <div class="fileUploadify" id="uploadfileQueueImages"></div>
                <img src="@Model.Images" id="Images1" name="Images1" style="height: 100px; margin-top:10px;margin-left:15px;">
            </div>
        </div>
        <script>
            $(function () {
                //Set.uploadify.auto = true;
                //_FunSingle.fileUploadify("fileImages", "~/PM/UpdateImageOne?btnName=Images", "uploadfileQueueImages"
                //    , 1, '200MB', '*.jpg;*.jpeg;*.gif;*.png;*.bmp;', '*.jpg;*.jpeg;*.gif;*.png;*.bmp;', '~/Res/Files/UploadFile/browse-btn.png');

                var uid = '@Model.UID';
                $('#fileImages').uploadifive({
                    auto: true,
                    buttonText: "浏览上传",
                    checkScript: false,
                    fileType: 'image',
                    multi: false,
                    queueSizeLimit: 1,
                    formData: {},
                    queueID: 'uploadfileQueueImages',
                    removeCompleted: true,  // 上传成功后移除进度项
                    uploadScript: '/UserInfoCheck/UpdateImageOne?UID=' + uid,
                    onUploadComplete: function (file, data) {
                        document.getElementById("Images1").src = data;
                        document.getElementById("txtImages").value = data;
                    }
                });
            });
        </script>
    }
    }
    
    
<div class="form-item">
		<div class="input-block">
			<button type="submit" class="btn btn-large" id="btn-publish">立即保存</button>
		</div>
	</div>
</div>
}

